package com.ghck.server.model;

import java.util.Date;
/**
 * 测试记录  <br>
 * t_test_answer <br>
 * v1.0 2016-05-01
 */
 public class TestAnswer extends BaseModel implements Comparable<TestAnswer>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//测试类型ID dict_test_category 表ID
 	//category_id
	private Integer categoryId;

 	//测试得分
 	//score
	private Integer score;

 	//测试者ID t_users 表ID
 	//user_id
	private Integer userId;
	
	private Integer inUsed;

 	//测评结果
 	//result
	private String result;

 	//测评结果描述
 	//result_desc
	private String resultDesc;

 	//医生建议
 	//doctor_suggest
	private String doctorSuggest;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//start_time
	private Date startTime;

 	
 	//end_time
	private Date endTime;

 	
 	//create_time
	private Date createTime;

	private String stationId;
	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*测试类型ID dict_test_category 表ID
 	*category_id
 	*/
	public Integer getCategoryId() {
		return categoryId;
	}
	
	/**
	*测试类型ID dict_test_category 表ID
 	*category_id
 	*/
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	
	/**
	*测试得分
 	*score
 	*/
	public Integer getScore() {
		return score;
	}
	
	/**
	*测试得分
 	*score
 	*/
	public void setScore(Integer score) {
		this.score = score;
	}
	
	/**
	*测试者ID t_users 表ID
 	*user_id
 	*/
	public Integer getUserId() {
		return userId;
	}
	
	/**
	*测试者ID t_users 表ID
 	*user_id
 	*/
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	/**
	*测评结果
 	*result
 	*/
	public String getResult() {
		return result;
	}
	
	/**
	*测评结果
 	*result
 	*/
	public void setResult(String result) {
		this.result = result;
	}
	
	/**
	*测评结果描述
 	*result_desc
 	*/
	public String getResultDesc() {
		return resultDesc;
	}
	
	/**
	*测评结果描述
 	*result_desc
 	*/
	public void setResultDesc(String resultDesc) {
		this.resultDesc = resultDesc;
	}
	
	/**
	*医生建议
 	*doctor_suggest
 	*/
	public String getDoctorSuggest() {
		return doctorSuggest;
	}
	
	/**
	*医生建议
 	*doctor_suggest
 	*/
	public void setDoctorSuggest(String doctorSuggest) {
		this.doctorSuggest = doctorSuggest;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*start_time
 	*/
	public Date getStartTime() {
		return startTime;
	}
	
	/**
	*
 	*start_time
 	*/
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	/**
	*
 	*end_time
 	*/
	public Date getEndTime() {
		return endTime;
	}
	
	/**
	*
 	*end_time
 	*/
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	public Integer getInUsed() {
		return inUsed;
	}

	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}

	@Override
	public void dealWith(){
		super.dealWith();
		
	}

	public String getStationId() {
		return stationId;
	}

	public void setStationId(String stationId) {
		this.stationId = stationId;
	}

	@Override
	public int compareTo(TestAnswer o) {
		if(id!=null && o!=null && o.id!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
	
	
	
}	